﻿<Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
             x:Class="Pixster.Slideshow.App"
             xmlns:local="clr-namespace:Pixster.Slideshow">

    <Application.Resources>
        <ResourceDictionary>
            <Style x:Key="PhotoHost" TargetType="local:PhotoHost">
                <Setter Property="HorizontalAlignment" Value="Stretch"/>
                <Setter Property="VerticalAlignment" Value="Stretch"/>
                <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
                <Setter Property="VerticalContentAlignment" Value="Stretch"/>
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="local:PhotoHost">
                            <Grid x:Name="Root" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="*" />
                                </Grid.RowDefinitions>
                                <Image x:Name="PART_Image" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                            </Grid>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>

            <Style x:Key="SlideShowControl" TargetType="local:SlideShowControl">
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="local:SlideShowControl">
                            <Grid x:Name="Root" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                                <Border x:Name="PART_Host" Margin="0,5,0,5"/>
                            </Grid>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
        </ResourceDictionary>
    </Application.Resources>
</Application>
